package com.zwz.resp.basic;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;
import java.math.BigDecimal;
import java.util.*;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class EnterpriseReport {
    private Integer stat;
    private Integer total;

    @JsonProperty("page")
    private List<ShareholderInfo> shareholders;

    @Data
    public static class ShareholderInfo {
        @JsonProperty("relatedEnterpriseCurrentNum")
        private Integer currentEnterprises;

//        @JsonProperty("humanLogo")
        private String  humanLogo;

        @JsonProperty("ratio")
        private BigDecimal shareRatio;

        private String name;

        @JsonProperty("relatedEnterpriseHistoryNum")
        private Integer historyEnterprises;

        @JsonProperty("humanId")
        private String id;

        private List<String> position;

        @JsonProperty("isController")
        private Integer isController;




        // 特殊字段处理示例
//        @JsonIgnore
//        public String getCleanName() {
//            return name.replaceAll("[^\\u4e00-\\u9fa5a-zA-Z]", "");
//        }


        public Integer getCurrentEnterprises() {
            return currentEnterprises;
        }

        public void setCurrentEnterprises(Integer currentEnterprises) {
            this.currentEnterprises = currentEnterprises;
        }

        public BigDecimal getShareRatio() {
            return shareRatio;
        }

        public void setShareRatio(BigDecimal shareRatio) {
            this.shareRatio = shareRatio;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Integer getHistoryEnterprises() {
            return historyEnterprises;
        }

        public void setHistoryEnterprises(Integer historyEnterprises) {
            this.historyEnterprises = historyEnterprises;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public List<String> getPosition() {
            return position;
        }

        public void setPosition(List<String> position) {
            this.position = position;
        }

        public Integer getIsController() {
            return isController;
        }

        public void setIsController(Integer isController) {
            this.isController = isController;
        }
    }





}